<style lang="scss"></style>
<template lang="pug">
  #root-view
    app-header
    keep-alive(:max="20" :include="keepAliveList")
      router-view#root-main
</template>

<script>
import AppHeader from '@/components/common/AppHeader.vue'

export default {
    name: 'app',
    components: {
        AppHeader,
    },
    computed: {
        keepAliveList() {
            // 获取缓存的路由列表
            return this.$store.state.app.keepAliveList
        },
    },
}
</script>
